﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ST.Torch.WebApi.Core.Entities.DaTi
{
    public class D_Company : BaseEntity, IEntityTypeBuilder<D_Company>
    {
        /// <summary>
        /// 公司代码
        /// </summary>
        [MaxLength(500)]
        public string Code { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(500)]
        public string Name { get; set; }
        public void Configure(EntityTypeBuilder<D_Company> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.HasKey(u => u.Id);
        }
    }
}
